'''
Author 向泽楷
Create Time 2020.7.8 上午
Change Time1 2020.7.8 上午
Pull Time 2020.7.8 晚上
Results 根据传入的车牌前缀查询车牌所属地域
'''

from regional_identification import region_data


def QueryRegionByCarNumPrefix(CarNumPrefix):
    result = ''

    for i in range(0, len(region_data.carnum_region_list)):
        if region_data.carnum_region_list[i].get('车牌前缀') == CarNumPrefix:
            result = region_data.carnum_region_list[i].get('省份')+region_data.carnum_region_list[i].get('城市')
                      #'城市',


    return result
